Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal mappedTimeUnit As TimeInterval, _ ByVal wholeTimeUnit As TimeInterval, _ ByVal timePattern() As Boolean _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public CalendarPattern( TimeInterval mappedTimeUnit, TimeInterval wholeTimeUnit, bool[] timePattern ) |
Parameters
- mappedTimeUnit
- wholeTimeUnit
- timePattern
This instantiates a new CallendarPattern of a week marking the saturday and sunday.
It uses the PatternFromString method to simplify adding a pattern by using a
string.
C# | Copy Code |
---|---|
CalendarPattern newPattern = new CalendarPattern(TimeInterval.Day,TimeInterval.Week,CalendarPattern.PatternFromString("1000001")); |